package com.thrc.borrow.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.thrc.borrow.dao.JobDao;
import com.thrc.borrow.entity.Job;
import com.thrc.borrow.vo.JobVo;

@Service
public class JobService implements BaseService<Job, JobVo> {

	@Autowired
	private JobDao jobDao;

	@Override
	public JobVo selectById(Job t) {
		return jobDao.selectById(t);
	}

	@Override
	public List<JobVo> selectAll(Job t) {
		return jobDao.selectAll(t);
	}

	@Override
	public int selectCount(Job t) {
		return jobDao.selectCount(t);
	}

	@Override
	public List<JobVo> selectByPage(Job t) {
		t.setStartRow(t.getPageIndex(), t.getPageSize());
		return jobDao.selectByPage(t);
	}

	@Override
	public void update(Job t) {
		jobDao.update(t);
	}
	
	
	@Override
	public void delete(Job t) {
		jobDao.delete(t);
	}

	@Override
	public void insert(Job t) {
		jobDao.insert(t);
	}

}
